<div class="login_wrap">   

<h1>Rejestracja</h1>

<form action="<?php echo url_for('@sf_register') ?>" method="post" >
	<?php echo $reg_form->renderGlobalErrors() ?>  
		
	<table  style="width:200px;margin:40px auto">
		<tr>
			<td>Login:</td>
			<td style="width: 128px"><?php echo $reg_form['user']->render(array('style'=>'width:126px;','title'=>'Wprowadź nazwę konta')); ?></td>
		</tr>
		<?php if($reg_form['user']->hasError()): ?><tr><td colspan="2"><?php echo $reg_form['user']->renderError() ?></td></tr><?php endif ?>
		<tr>	
			<td>Hasło:</td>
			<td style="width: 128px"><?php echo $reg_form['password']->render(array('style'=>'width:126px;','title'=>'Wprowadź hasło dla konta')); ?></td>
		</tr>
		<?php if($reg_form['password']->hasError()): ?><tr><td colspan="2"><?php echo $reg_form['password']->renderError() ?></td></tr><?php endif ?>
	</table>
	
	<input type="submit" value="Zarejestruj" style="margin-bottom:40px;"/>
</form>


<?php
/*


	<table width="300" align="center">
		<tr>
			<td><h1>Rejestracja</h1></td>
		</tr>
		<tr>
			
			<td>
				<div>	
					<form action="<?php echo url_for('@sf_register') ?>" method="post" >
						<?php echo $reg_form->renderGlobalErrors() ?>  
							
						<table  width="100%">
							<?php if($reg_form['user']->hasError()): ?><tr><td colspan="2"><?php echo $reg_form['user']->renderError() ?></td></tr><?php endif ?>
							<tr>
								<td class="register_form_label">Login</td>
								<td style="width: 128px"><?php echo $reg_form['user'] ?></td>
							</tr>
							<?php if($reg_form['password']->hasError()): ?><tr><td colspan="2"><?php echo $reg_form['password']->renderError() ?></td></tr><?php endif ?>
							<tr>	
								<td class="register_form_label">Hasło</td>
								<td style="width: 128px"><?php echo $reg_form['password'] ?></td>
							</tr>
						</table>
						
						<input type="submit" value="Rejestruj" class="modern_button"/>
					</form>
				</div>
			</td>
		</tr>
		
	</table>
	
*/ 
?>	
	
 </div>